/*LHOAG*/
body {
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: url(pic/beijing.webp);
    background-size: cover;
    background-attachment: fixed;
    font-family: 'Arial Rounded MT Bold', Arial, sans-serif;
}

h1 {
    text-align: center;
    color: #ff6b6b;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin: 20px 0;
    font-size: 2.5em;
}

#game-board {
    position: relative;
    width: 556px;
    height: 556px;
    margin: 0 auto;
    padding: 5px;
    background: rgba(255,255,255,0.9);
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
    overflow: hidden;
}

.tile {
    position: absolute;
    width: 60px;
    height: 60px;
    cursor: pointer;
    background-size: cover;
    transition: 
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        top 0.5s cubic-bezier(0.33, 1, 0.68, 1);
    border-radius: 8px;
    will-change: transform, top;
    border: 2px solid rgba(255,255,255,0.3);
    box-sizing: border-box;
}

.tile.selected {
    transform: scale(0.85) rotate(8deg);
    box-shadow: 0 0 20px #ff4757;
    filter: brightness(1.15) saturate(1.2);
    z-index: 2;
    transition: all 0.2s ease-out;
}

@keyframes match {
    0% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.3) rotate(180deg); opacity: 0.8; }
    100% { transform: scale(0) rotate(360deg); opacity: 0; }
}

.tile.matched {
    animation: match 0.6s ease-in-out forwards;
}

@keyframes fall {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.tile.new {
    animation: fall 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#score-board {
    text-align: center;
    font-size: 28px;
    color: #2ed573;
    margin: 25px 0;
    padding: 15px 30px;
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

footer {
    text-align: center;
    color: rgba(255,255,255,0.9);
    padding: 20px;
    margin-top: auto;
    font-size: 14px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    letter-spacing: 0.5px;
}
/*LHOAG*/